package com.bookcloud.java21.chapter8.多线程概念81;

public class MultiThreadConcept {
  public static void main(String[] args) {
    // 获取当前线程（主线程）的名称
    System.out.println("当前线程的名称: " + Thread.currentThread().getName());
    // 获取当前线程的优先级
    System.out.println("当前线程的优先级: " + Thread.currentThread().getPriority());
    // 获取多线程的状态
    System.out.println("当前线程的状态: " + Thread.currentThread().getState());
    // 获取多线程的核数
    System.out.println("当前线程的核数: " + Runtime.getRuntime().availableProcessors());
  }
}
